#include "CpSimMain.h"
// #include "CpLog.h"
#include "CpSimulator.h"
int main(int argc, const char* argv[])
{

  CpSimulator sim;
  TString tmp;
  for (Int_t i=0;i<argc;i++) {
    tmp = argv[i];
    if (!tmp.CompareTo("--out-file")) {
      tmp = argv[++i];
      sim.SetOutputFileName(tmp.Data());
    } else if (!tmp.CompareTo("--geometry-file")) {
      tmp = argv[++i];
      sim.SetGeometryFile(tmp.Data());
    } else if (!tmp.CompareTo("--number-events")) {
      tmp = argv[++i];
      sim.SetNumberOfEvents(tmp.Atoi());
    } else if (!tmp.CompareTo("--number-tracks-per-event")) {
      tmp = argv[++i];
      sim.SetNumberOfTracksInOneEvent(tmp.Atoi());
    }

  }
  sim.Simulate();

//   sim.ShowEvent(1);

  return 0;
}
